<template>
  <div class="app-container">
    <el-tabs type="border-card" :value="activeTab" @tab-click="changeTab">
      <el-tab-pane v-if="roleCheck('list')" name="one" label="美洲杯第一波">
        <list-one v-show="activeTab === 'one'"></list-one>
      </el-tab-pane>
      <el-tab-pane v-if="roleCheck('reward')" name="two" label="美洲杯第二波">
        <list-two v-show="activeTab === 'two'"></list-two>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
  import { tabs } from '@/build';
  import listOne from './listOne';
  import listTwo from './listTwo';

  export default {
    name: 'index',
    components: {
      listOne,
      listTwo
    },
    mixins: [tabs],
    data() {
      return {
        activeTab: 'one',
      };
    },
    mounted() {
    },
    methods: {
      changeTab(tabs) {
        this.activeTab = tabs.name;
      },
    },
  };
</script>

<style scoped>

</style>
